<template>
  <div>
    <vanTag v-bind='$attrs' v-on='$listeners' type="success" effect='dark' size='small' :disable-transitions='true'
             @click='clickChild'
             @close='clickChild'>
      <slot></slot>
    </vanTag>
  </div>
</template>

<script>
  import {Tag} from 'vant';

  export default {
    name: 'Tag', components: {vanTag: Tag},
    methods: {
      clickChild() {
        this.$emit('click-child')
      }
    }
  }
</script>

<style scoped>

</style>
